


var app=angular.module('conversionTool', []);



app.controller('soapTestCtrl', [ '$scope', '$http', function($scope, $http) {	
	
	
	$scope.passwordType="None";
  
	$scope.sendSoap=function(){		
		
		
		$http.post('/rest/soap/sendSoap', {
			"url":$scope.url,
			"userName" : $scope.userName,
			"password" : $scope.password,
			"passwordType":$scope.passwordType,
			"payload":$scope.payload
			
		}).success(function(data) {
			
			$scope.result=data.result;

		}).error(function(data) {

			console.log(data);
		});
		
	}
	
	
	$scope.setType=function(type){
		
		$scope.passwordType=type;		
	}
    
}]);